<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    
    
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
        <title><?php echo (L("_web_title_")); ?></title>
        <meta content="Admin Dashboard" name="description" />
        <meta content="Themesdesign" name="author" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />       
        <!-- App Icons -->     
        <link rel="shortcut icon" type="image/x-icon" href="/xnqb/Public/Home/images/favicon.ico">
        <!--Morris Chart CSS -->
        <link rel="stylesheet" href="/xnqb/Public/Home/css/morris.css">

        <!-- App css -->
        <link href="/xnqb/Public/Home/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!--  -->
        <link href="/xnqb/Public/Home/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="/xnqb/Public/Home/css/style.css" rel="stylesheet" type="text/css" />
        <link href="/xnqb/Public/Home/flag-css/css/flag-icon.min.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            #topnav .navbar-custom {
                linear-gradient(to right, #043E73,#287BC7);
                box-shadow: 0 1px 1px rgba(0,0,0,.1);
                padding-left: 0;
            }

            .header-item h5 {
                color: hsl(51, 100%, 57%);
                font-size: 14px;
            }
            .my-container{
            	width:60%;
            }
            
            @media (max-width:991px) {

				.my-container {
					width:100%;
				}
			}
        </style>
    </head>


    <body>
        
        <!-- Loader -->
        <div id="preloader"><div id="status"><div class="spinner"></div></div></div>

        <!-- Navigation Bar-->
        <header id="topnav">
            <div class="topbar-main" style="background: linear-gradient(to right,hsl(209, 93%, 23%),hsl(209, 67%, 47%));">
                <div class="container-fluid">

                    <!-- Logo container-->
                    <div class="logo">
                        <!-- Text Logo -->
                        <!--<a href="index.html" class="logo">-->
                        <!--Upcube-->
                        <!--</a>-->
                        <!-- Image Logo -->
                        <a class="navbar-toggle nav-link" style="padding-top: 8px;" class="logo-small">
                            <div class="lines">
                                <span></span>
                                <span></span>
                                <span></span>
                            </div>
                        </a>
                        <a href="<?php echo U('Index/index');?>" class="logo logo-large" >
                            <!-- <img src="images/logo-sm1.jpg" alt="" height="22" class="logo-small" > -->
                            <img src="/xnqb/Public/Home/images/logo4.png" alt="" height="100"> 
                        </a>
                    </div>
                    <!-- End Logo container-->


                    <div class="menu-extras topbar-custom">

                        <!-- Search input -->
                        <div class="search-wrap" id="search-wrap">
                            <div class="search-bar">
                                <input class="search-input" type="search" placeholder="Search" />
                                <a href="#" class="close-search toggle-search" data-target="#search-wrap">
                                    <i class="mdi mdi-close-circle"></i>
                                </a>
                            </div>
                        </div>

                        <ul class="list-inline float-right mb-0">


                            <!-- notification-->
                            <li class="list-inline-item dropdown notification-list">
                              <a href="<?php echo U('Sell/sell');?>" style="color:#fff;"><span><?php echo (L("_nav_fast_sell_")); ?></span></a>
                            </li>
                            <li class="list-inline-item dropdown notification-list">
                                <a class="nav-link dropdown-toggle arrow-none waves-effect" data-toggle="dropdown" href="#" role="button"
                                   aria-haspopup="false" aria-expanded="false">
                                    <h4><i class="flag-icon flag-icon-cn"></i></h4>
                                    
                                    <!-- <span class="badge badge-danger noti-icon-badge">3</span> -->
                                </a>
                                <div class="dropdown-menu dropdown-menu-right dropdown-arrow dropdown-menu-lg">
                                    <!-- item-->
                                    <!-- <div class="dropdown-item noti-title">
                                        <h5>Notification (3)</h5>
                                    </div> -->

                                    <!-- item-->
                                    <a href="?l=zh-cn" class="dropdown-item notify-item">
                                        <div class="notify-icon" style="position: relative;top:-0.6em;"><h4><i class="flag-icon flag-icon-cn"></i></h4></div>
                                        
                                        <p class="notify-details"><b>中文</b></p>
                                    </a>
                                    
                                    <a href="?l=en-us" class="dropdown-item notify-item">
                                        <div class="notify-icon" style="position: relative;top:-0.6em;" ><h4><i class="flag-icon flag-icon-gb"></i></h4></div>
                                        <p class="notify-details"><b>English</b></p>
                                    </a>


                                </div>
                            </li>
                            <!-- User-->
                            <li class="list-inline-item dropdown notification-list">
                                <a class="nav-link dropdown-toggle arrow-none waves-effect nav-user" data-toggle="dropdown" href="#" role="button"
                                   aria-haspopup="false" aria-expanded="false">
                                    <img src="/xnqb/Public/Home/images/avatar-1.jpg" alt="user" class="rounded-circle">
                                    <?php echo ($user); ?>
                                </a>

                                <div class="dropdown-menu dropdown-menu-right profile-dropdown ">
                                    <!-- <a class="dropdown-item" href="#"><i class="dripicons-user text-muted"></i> Profile</a>
                                    <a class="dropdown-item" href="#"><i class="dripicons-wallet text-muted"></i> My Wallet</a>
                                    <a class="dropdown-item" href="#"><span class="badge badge-success pull-right m-t-5">5</span><i class="dripicons-gear text-muted"></i> Settings</a>
                                    <a class="dropdown-item" href="#"><i class="dripicons-lock text-muted"></i> Lock screen</a>
                                    <div class="dropdown-divider"></div> -->
                                    <a class="dropdown-item" href="<?php echo U('Matcher/my_account');?>"><i class="mdi mdi-account"></i><?php echo ($member["account"]); ?></a>
                                    <?php if($matchername != ''): ?><a class="dropdown-item" href="<?php echo U('Matcher/my_matcher');?>"><i class="mdi mdi-book-variant"></i><?php echo ($matchername); ?></a>
                                    <?php else: endif; ?>
                                    
                                </div>
                            </li>
                            
                            <li class="list-inline-item dropdown notification-list">
                              <a href="<?php echo U('Login/logout');?>" style="color:#fff;"><span><?php echo (L("_logout_")); ?></span></a>
                            </li> 
                            
                            <!-- <li class="menu-item list-inline-item">
                                <a class="navbar-toggle nav-link">
                                    <div class="lines">
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </div>
                                </a>
                            </li> -->

                        </ul>
                    </div>
                    <!-- end menu-extras -->

                    <div class="clearfix"></div>

                </div> <!-- end container -->
            </div>
            <!-- end topbar-main -->

            <!-- MENU Start -->
            <div class="navbar-custom" style="background:linear-gradient(to right,hsl(209, 93%, 23%),hsl(209, 67%, 47%));">
                <div class="container-fluid">
                    <div id="navigation">
                        <!-- Navigation Menu-->
                        <ul class="navigation-menu">

                            <li class="has-submenu">
                                <a href="<?php echo U('Index/index');?>"><i class="ti-home"></i><?php echo (L("_index_")); ?></a>
                            </li>



                            <li class="has-submenu">
                                <a href="#"><i class="ti-crown"></i><?php echo (L("_nav_register_")); ?></a>
                                <ul class="submenu">
                                    <li><a href="<?php echo U('Register/reg');?>"><?php echo (L("_nav_register_page_")); ?></a></li>
                                	
                                	<li><a href="<?php echo U('Matcher/my_matcher2');?>"><?php echo (L("_member_matcher_list_")); ?></a></li>
                                	<li><a href="<?php echo U('Matcher/upgrade');?>"><?php echo (L("_upgrade_center_")); ?></a></li>
                                	<li><a href="<?php echo U('Matcher/restructure');?>"><?php echo (L("_restructure_matcher_")); ?></a></li>
                                </ul>
                            </li>

                            <li class="has-submenu">
                                <a href="#"><i class="ti-bookmark-alt"></i><?php echo (L("_nav_account_manage_")); ?></a>
                                <ul class="submenu">
                                    <li>
                                        <a href="<?php echo U('Matcher/my_account');?>"><?php echo (L("_nav_my_account_")); ?></a>
                                    </li>
                                    <!-- <li class="has-submenu">
                                        <a href="#"><?php echo (L("_nav_cash_integral_page_")); ?></a>
                                        <ul class="submenu">
                                            <li><a href="<?php echo U('Matcher/my_cash');?>"><?php echo (L("_nav_add_cash_integral_page_")); ?></a></li>
                                            <li><a href="form-validation.html"><?php echo (L("_nav_add_game_integral_page_")); ?></a></li>
                                            
                                        </ul>
                                    </li> -->
                                    <!-- <li>
                                        <a href="<?php echo U('Matcher/purchase');?>"><?php echo (L("_nav_register_getmatching_")); ?></a>
                                    </li> -->
                                    
                                    <li>
                                        <a href="<?php echo U('Matcher/my_matcher');?>"><?php echo (L("_nav_my_matching_")); ?></a>
                                    </li>

                                </ul>
                            </li>

                            <li class="has-submenu">
                                <a href="#"><i class="ti-files"></i><?php echo (L("_nav_network_manage_")); ?></a>
                                <ul class="submenu megamenu">
                                    <li>
                                        <ul>
                                            <li><a href="<?php echo U('Network/placenetwork');?>"><?php echo (L("_nav_place_network_")); ?></a></li>
                                            <li><a href="<?php echo U('Network/recommendnetwork');?>"><?php echo (L("_nav_recommend_network_")); ?></a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            
                            
                            <li class="has-submenu">
                                <a href="#"><i class="ti-files"></i><?php echo (L("_nav_hang_sell_manage_")); ?></a>
                                <ul class="submenu megamenu">
                                    <li>
                                        <ul>
                                            <li><a href="<?php echo U('Sell/sell');?>"><?php echo (L("_nav_hang_sell_")); ?></a></li>
                                            <li><a href="<?php echo U('Sell/sell_list');?>"><?php echo (L("_nav_hang_sell_list_")); ?></a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            
                            <li class="has-submenu">
                                <a href="#"><i class="ti-files"></i><?php echo (L("_nav_capital_manage_")); ?></a>
                                <ul class="submenu megamenu">
                                    <li>
                                        <ul>
                                        	<li><a href="<?php echo U('Transfer/transfer_account');?>"><?php echo (L("_nav_transfer_account_")); ?></a></li>
                                            <li><a href="<?php echo U('Withdraw/withdraw');?>"><?php echo (L("_nav_withdraw_")); ?></a></li>
                                            <li><a href="<?php echo U('Withdraw/withdraw_list');?>"><?php echo (L("_nav_withdraw_log_")); ?></a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            
                            <li class="has-submenu">
                                <a href="#"><i class="ti-files"></i><?php echo (L("_report_")); ?></a>
                                <ul class="submenu megamenu">
                                    <li>
                                        <ul>
                                           <!--  <li>
                                             <a href="<?php echo U('Presentation/transaction');?>">交易记录</a>
                                            </li> -->
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>1));?>"><?php echo (L("_cash_integral_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>2));?>"><?php echo (L("_matcher_integral__report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>3));?>"><?php echo (L("_especially_register_integral_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>4));?>"><?php echo (L("_release_integral_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>5));?>"><?php echo (L("_savings_money_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>6));?>"><?php echo (L("_static_integral_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>7));?>"><?php echo (L("_dynamic_money_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/transaction',array('field'=>8));?>"><?php echo (L("_static_money_report_")); ?></a>
                                            </li>
                                            <li>
                                             <a href="<?php echo U('Presentation/transfer');?>"><?php echo (L("_transfer_report_")); ?></a>
                                            </li>   
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/touch');?>"><?php echo (L("_touch_bonus_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/straight');?>"><?php echo (L("_straight_bonus_report_")); ?></a>
                                            </li>
                                            
                                            <li>
                                             <a href="<?php echo U('Presentation/point');?>"><?php echo (L("_point_bonus_report_")); ?></a>
                                            </li>
                                                                                      
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="has-submenu">
                                <a href="#"><i class="ti-files"></i><?php echo (L("_information_")); ?></a>
                                <ul class="submenu megamenu">
                                    <li>
                                        <ul>
                                            <li><a href="<?php echo U('News/newslist');?>"><?php echo (L("_news_and_notices_")); ?></a></li>
                                            
                                        </ul>
                                    </li>
                                </ul>
                            </li>

                        </ul>
                        <!-- End navigation menu -->
                    </div> <!-- end #navigation -->
                </div> <!-- end container -->
            </div> <!-- end navbar-custom -->
             
        </header>
<!-- End Navigation Bar-->


        <div class="wrapper">
            
            <div class="row border-bottom text-white" style="background: linear-gradient(to right,hsl(209, 93%, 23%),hsl(209, 67%, 47%));text-align: center; padding-top: 50px;">
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                        <div class="row">
                            <div class="col-12 col-sm-3 text-xs-center"></div>
                            <div class="col-12 col-sm-3 text-xs-center">
                                <span><?php echo (L("_cash_integral_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["cash_integral"]); ?></h5>
                            </div>
                           
                        </div>
  
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item ">
                        <div class="row">
                            <div class="col-12 col-sm-3 text-xs-center"></div>
                            <div class="col-12 col-sm-3 text-xs-center">
                                <span><?php echo (L("_game_integral_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["matcher_integral"]); ?></h5>
                            </div> 
                        </div>
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                         <div class="row">
                            <div class="col-12 col-sm-2 text-xs-center"></div>
                            <div class="col-12 col-sm-4 text-xs-center">
                                 <span><?php echo (L("_especially_register_integral_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["especially_register_integral"]); ?></h5>
                            </div> 
                        </div>
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                       <div class="row">
                            <div class="col-12 col-sm-2 text-xs-center"></div>
                            <div class="col-12 col-sm-4 text-xs-center">
                                 <span><?php echo (L("_release_integral_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["release_integral"]); ?></h5>
                            </div> 
                        </div>                       
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                        <div class="row">
                            <div class="col-12 col-sm-3 text-xs-center"></div>
                            <div class="col-12 col-sm-3 text-xs-center">
                                 <span><?php echo (L("_storage_money_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["savings_money"]); ?></h5>
                            </div> 
                        </div>       
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                        <div class="row">
                            <div class="col-12 col-sm-3 text-xs-center"></div>
                            <div class="col-12 col-sm-3 text-xs-center">
                                 <span><?php echo (L("_static_integral_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 style="margin:0;margin-top:3px;"><?php echo ($member["static_integral"]); ?></h5>
                            </div> 
                        </div>     
                    </div>
                </div>
                
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                        <div class="row">
                            <div class="col-12 col-sm-2 text-xs-center"></div>
                            <div class="col-12 col-sm-4 text-xs-center">
                                 <span ><?php echo (L("_dynamic_money_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 id="var_dynamic_money" style="margin:0;margin-top:3px;"><?php echo ($member["dynamic_money"]); ?></h5>
                            </div> 
                        </div>                                             
                    </div>
                </div>
                
 
                <div class="col-6 col-sm-3 text-xs-center" style="padding:20px 0;">
                    <div class="header-item">
                        <div class="row">
                             <div class="col-12 col-sm-2 text-xs-center"></div>
                            <div class="col-12 col-sm-4 text-xs-center">
                                 <span ><?php echo (L("_static_money_")); ?></span>
                            </div>
                            <div class="col-12 col-sm-3 text-xs-center">
                               <h5 id="var_static_money" style="margin:0;margin-top:3px;"><?php echo ($member["static_money"]); ?></h5>
                            </div> 
                        </div>                        
                    </div>
                </div>
                

            </div>


            <div class="container-fluid my-container">          
                <div class="row" style="height: 30px;"></div>
				
				<div class="row">
                    <div class="col-sm-12">
                        <div class="page-title-box">
                            <div class="btn-group pull-right">
                                <ol class="breadcrumb hide-phone p-0 m-0">
                                    <li class="breadcrumb-item"><a href="<?php echo U('Index/index');?>"><?php echo (L("_nav_index_")); ?></a></li>
                                    <li class="breadcrumb-item active"><?php echo (L("_nav_my_matching_")); ?></li>
                                </ol>
                            </div>
                            <h4 class="page-title"><?php echo (L("_nav_my_matching_")); ?></h4>
                        </div>
                    </div>
                </div> 

                
                <div class="row">
                    <div class="col-12">
                        <div class="card m-b-30">
                            <div class="card-body">
                                <div class="table-rep-plugin">
                                    <div class="table-responsive b-0" data-pattern="priority-columns">
                                        <table id="tech-companies-1" class="table  table-striped">
                                            <thead>
                                            <tr>
                                                <th style="min-width:60px;"><?php echo (L("_serial_number_")); ?></th>
                                                <th style="min-width:90px;"><?php echo (L("_matcher_name_")); ?></th>
                                                <th style="min-width:60px;"><?php echo (L("_money_")); ?></th>
                                                <th style="min-width:90px;"><?php echo (L("_buy_time_")); ?></th>
                                                <th style="min-width:60px;"><?php echo (L("_state_")); ?></th>                                              
                                            </tr>
                                            </thead>
                                            <tbody id="my_tbody">
                                            <?php if(is_array($data["list"])): $key = 0; $__LIST__ = $data["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($key % 2 );++$key;?><tr>
	                                                <th><?php echo ($key); ?></th>
	                                                <td><?php echo ($vo["matcher_name"]); ?></td>
	                                                <td><?php echo ($vo["money"]); ?></td>
	                                                <td><?php echo ($vo["create_time"]); ?></td>
	                                                <td class="state_td">
	                                                	<?php if($vo["state"] == 1 ): echo (L("_auditing_")); ?>
	                                                	<?php elseif($vo["state"] == 2 ): ?> 
	                                                		<?php echo (L("_activation_")); ?>
														<?php else: ?> 
														    <?php echo (L("_no_activation_")); endif; ?>
	                                                	
	                                                </td>
	                                                <td>
	                                                	<?php if($vo["state"] == 0 ): ?><button data-id="<?php echo ($vo["id"]); ?>" class="btn btn-primary waves-effect waves-light matcher_button" type="submit">	
	                                                			<?php echo (L("_activation_matcher")); ?>
	                                                		   </button>
														<?php else: endif; ?>
														
	                                                	
	                                                </td>
                                            	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                            
                                            
                                            
                                            </tbody>
                                        </table>
                                        
                                        
                                    </div>
                                    <div class="pull-right">
										<ul class="pagination">
											  <?php echo ($data["page"]); ?>
											  <!-- <li class="page-item"><a class="page-link" href="#">Previous</a></li>
											  <li class="page-item"><a class="page-link" href="#">1</a></li>
											  <li class="page-item active"><a class="page-link" href="#">2</a></li>
											  <li class="page-item"><a class="page-link" href="#">3</a></li>
											  <li class="page-item"><a class="page-link" href="#">Next</a></li> -->
										</ul>
									</div>
                                </div>

                            </div>
                        </div>
                    </div> <!-- end col -->
                </div> <!-- end row -->

            </div> <!-- end container -->
        </div>
        <!-- end wrapper -->
		
		
		<div id="matcher_button_modal" class="modal fade bs-example-modal-center" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-dialog-centered">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title mt-0">提醒</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    </div>
                    <div class="modal-body">
                        <p>确定需要激活？</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary waves-effect waves-light matcher_save_button">确定</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
                                        


        <!-- Footer -->
        <footer class="footer">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                        © Copyright © 2018 RAC , <?php echo (L("_all_rights_reserved_")); ?>.
                    </div>
                </div>
            </div>
        </footer>
        <!-- End Footer -->


        <!-- jQuery  -->
        <script src="/xnqb/Public/Home/js/jquery.min.js"></script>
        <script src="/xnqb/Public/Home/js/popper.min.js"></script>
        <script src="/xnqb/Public/Home/js/bootstrap.min.js"></script>
        <script src="/xnqb/Public/Home/js/modernizr.min.js"></script>
        <script src="/xnqb/Public/Home/js/waves.js"></script>
        <script src="/xnqb/Public/Home/js/jquery.slimscroll.js"></script>
        <script src="/xnqb/Public/Home/js/jquery.nicescroll.js"></script>
        <script src="/xnqb/Public/Home/js/jquery.scrollTo.min.js"></script>
        
        <script src="/xnqb/Public/Home/layer/layer.js"></script>

        <!--Morris Chart-->
        <!-- <script src="/xnqb/Public/Home/js/morris.min.js"></script> -->
        <script src="/xnqb/Public/Home/js/raphael-min.js"></script>

        <!-- <script src="/xnqb/Public/Home/js/dashborad.js"></script> -->

        <!-- App js -->
        <script src="/xnqb/Public/Home/js/app.js"></script>
		
		<script type="text/javascript">
            $(function () {
            	$('.matcher_save_button').click(function () {
            		var id = $(this).data('id');
            		var index = $(this).data('index');
            		$.ajax({
	               	    type: "POST",
	               	    url: "<?php echo U('Matcher/activation');?>",
	               	    data: {
	               	    	matcher_id : id
	               	    },// 要提交的表单
	               	    dataType: 'json',
	               	    beforeSend: function(){
	       					layer_index = layer.load(1, {
	       					  	shade: [0.1, '#ccc'] //0.1透明度的白色背景
	       					});
	       				},
	               	    success: function (data, response) {
	               	    	layer.close(layer_index);
	               	    	if (data.flag > 0) {
	               	    		layer.msg(data.msg);
	               	    		$('#my_tbody').find('tr').eq(index).find('.state_td').html('审核中');
	               	    		$('#matcher_button_modal').modal('hide');
	               	    	} else {
	               	    		layer.msg(data.msg);
	               	    	}
	               	    },
	               	    error: function (error) {
	               	    	layer.close(layer_index);
	               	    	layer.msg('error');
	               	    }
	               	  });
            	});
            	$('.matcher_button').click(function () {
            		var id = $(this).data('id');
            		var layer_index = null;
            		var index = $(this).closest('tr').index();
            		$('#matcher_button_modal').modal('show');
            		$('.matcher_save_button').attr('data-id', id);
            		$('.matcher_save_button').attr('data-index', index);
            		return false;
            		
            	});
            });
        </script>
    </body>
</html>